#include "stdafx.h"
#include "BasicStrategy.h"
#include "Negamax.h"

Move BasicStrategy::GetNextMove(Board &b)
{
	static const int EVAL_PIECE_SCORE [] = { 200, 9, 5, 3, 3, 1 };

	return Negamax(b, 4, 
		[this](Board &board, Move &lastMove)
		{
		float ret = 0.0f;

		for (int i = 1; i < 6; ++i)
			ret += EVAL_PIECE_SCORE[i] * (board.PieceCounts[i] - board.PieceCounts[i + 6]);

		return (int) (ret * 100.0f);


		});
}
